package ovm.gui.actions.menu.catalogs;

import com.vaadin.ui.MenuBar;
import ovm.entity.SubjectFormEntity;
import ovm.gui.actions.menu.AbstractMenuAction;
import ovm.gui.views.catalogs.DefaultIdValueCatalogView;

import static ovm.application.MainApplication.navigator;

public class SubjectFormCatalogAction extends AbstractMenuAction {

    @Override
    public void menuSelected(MenuBar.MenuItem selectedItem) {
        navigator.setMainView(new DefaultIdValueCatalogView(SubjectFormEntity.class, "Справочник. Виды предметов.", true));
    }
}
